package com.literature.threeGroup.mapper;

import com.literature.threeGroup.pojo.MenuRole;
import com.literature.threeGroup.pojo.MenuRoleExample;
import java.util.List;

import com.literature.threeGroup.pojo.Role;
import com.literature.threeGroup.pojo.RoleUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface MenuRoleMapper {
    long countByExample(MenuRoleExample example);

    int deleteByExample(MenuRoleExample example);

    int insert(MenuRole record);

    int insertSelective(MenuRole record);

    List<MenuRole> selectByExample(MenuRoleExample example);

    int updateByExampleSelective(@Param("record") MenuRole record, @Param("example") MenuRoleExample example);

    int updateByExample(@Param("record") MenuRole record, @Param("example") MenuRoleExample example);
    /**
      * @name  角色权限中间表修改
     * @Author VULCAN
     * @Date 2020/1/22 12:37
     */
    void rolemenuupdate(MenuRole menuRole);
    /**
      * @name  根据角色id查询数据
     * @Author  VULCAN
     * @Date 2020/1/22 12:37
     */
    List<MenuRole> findbyrolemenuid(String roleId);
    /**
      * @name  删除角色id数据
     * @Author VULCAN
     * @Date 2020/1/22 12:40
     */
    void deletemenuRole(String roleId);
}